<template>

  <router-view />
  <div class="da">
    <!-- <div class="box">
      <div class="header">头部</div>
      <div class="meddle">内容</div>
    </div> -->
    <div class="footer">
      <van-tabbar v-model="active" route>
        <van-tabbar-item icon="home-o" to="/">首页</van-tabbar-item>
        <van-tabbar-item icon="search" to="/shop">购物车</van-tabbar-item>
        <van-tabbar-item icon="friends-o" to="/user">我的淘宝</van-tabbar-item>
        
      </van-tabbar>
    </div>
  </div>
</template>

<style lang="scss">
* {
  padding: 0;
  margin: 0;
  list-style: none;
}

.da {
  width: 100%;
  height: 100%;
}

html,
body,
#app .da {
  flex-direction: column;
  display: flex;
}

.box {
  flex-direction: column;
  display: flex;
  overflow: auto;
}

.meddle {
  overflow: auto;
}

.header {
  height: 3.125rem;
}

.footer {
  height: 3.125rem;
}
</style>
